package queue_stack.stack;

public class StackTest {
    public static void main(String[] args) {
        MyStack<Integer> stack = new MyStack<>();
        stack.push(1);
        stack.push(3);
        stack.push(5);
        // [1,3,5] top
        System.out.println(stack);
        // 5
        System.out.println(stack.peek());
        stack.pop();
        // [1,3] top
        System.out.println(stack);
    }
}
